﻿using System.ComponentModel;

namespace Sidvall.UI.Entities
{
	public abstract class EntityCacheBase : INotifyPropertyChanged
	{
		#region Public Members

		public event PropertyChangedEventHandler PropertyChanged;

		#region OnPropertyChanged

		protected void OnPropertyChanged(string propertyName)
		{
			OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
		}
		protected void OnPropertyChanged(PropertyChangedEventArgs args)
		{
			if (this.PropertyChanged != null)
				this.PropertyChanged.Invoke(this, args);
		}

		#endregion

		#endregion
		#region Constructors

		protected EntityCacheBase()
		{
		}

		#endregion
	}
}
